package com.example.sandbox.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 商户应用表
 *
 * @author liuxinxin
 * @since 2024-05-11
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("fs_mch_app")
@ApiModel(value = "MchApp对象")
public class MchApp extends Model<MchApp> {
    private static final long serialVersionUID = 1L;

    public static final LambdaQueryWrapper<MchApp> gw() {
        return new LambdaQueryWrapper<>();
    }

    @ApiModelProperty("应用ID")
    @TableId(value = "app_id")
    private String appId;

    @ApiModelProperty("应用名称")
    private String appName;

    @ApiModelProperty("商户号")
    private String mchNo;

    @ApiModelProperty("应用状态: 0-停用, 1-正常")
    private Byte state;

    @ApiModelProperty("应用私钥")
    private String appSecret;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建者用户ID")
    private Long createdUid;

    @ApiModelProperty("创建者姓名")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

}
